package com.wxzz.elearing.course.api.server;

import com.alibaba.fastjson.JSONObject;
import com.wxzz.elearing.course.service.IExamServiceService;
import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/exam-api")
public class ExamApi {

    @Autowired
    private IExamServiceService examServiceService;

    /**
     * 查询考试绑定的用户
     *
     * @param examId
     * @param wxUserIds
     */
    @RequestMapping(value = "/selectWxUserExam/{examId}", method = RequestMethod.POST)
    public ReturnVO<List<JSONObject>> selectWxUserExam(@PathVariable Long examId, @RequestBody List<Long> wxUserIds) {
        return examServiceService.selectWxUserExam(examId, wxUserIds);
    }
}
